//
//  NSOperationQueue+x.m
//  XPhoto
//
//  Created by baboy on 2019/6/26.
//  Copyright © 2019 baboy. All rights reserved.
//

#import "NSOperationQueue+x.h"

@implementation NSOperationQueue(x)

+ (id)defaultUploadQueue{
    static id _defaultUploadQueue = nil;
    static dispatch_once_t initOnceUploadQueue;
    dispatch_once(&initOnceUploadQueue, ^{
        _defaultUploadQueue = [[NSOperationQueue alloc] init];
        [(NSOperationQueue*)_defaultUploadQueue setMaxConcurrentOperationCount:2];
    });
    return _defaultUploadQueue;
}
@end
